/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package db.client.BUS;



import db.client.DAO.QueryDAO;

import db.client.DTO.QueryDTO;
import javax.xml.parsers.ParserConfigurationException;

/**
 *
 * @author QuangKhai
 */
public class QueryBUS {
    private QueryDAO queryDAO = new QueryDAO();    
    
    ///Save query to file
    public void saveQuery(QueryDTO queryDTO, String path) throws ParserConfigurationException{
        queryDAO.writeQuery(queryDTO, path);
    }
    
    ///Read query file to generate QueryDTO
    public QueryDTO readQueryFile(String path){
        return queryDAO.readQueryFile(path);
    }
    
   
}
